import axios from '@/libs/api.request'
import {getFullUrl} from '../config'

let getUrl = getFullUrl('statistic')

//--------------------------------------GET
// 获取所有专题模块
export const listTopicModule = (version) => {
  return axios.request({
    url: getUrl('/company/module/version/' + version),
    method: 'GET'
  })
}
// 获取所有公司
export const listCompany = () => {
  return axios.request({
    url: getUrl('/company/list'),
    method: 'GET'
  })
}


//--------------------------------------POST
// 添加公司
export const addCompany = (company) => {
  return axios.request({
    url: getUrl('/company/add'),
    method: 'POST',
    data: company
  })
}

